package com.itic.appbase.framework.type;

public enum PointsChangeReason {
	add("001","消费赠送"),reduce("002","消费减少");
	private String type;
	private String name;
	PointsChangeReason(String type,String name){
		type = this.type;
		name = this.name;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public static PointsChangeReason getPointsChangeReason(String type){
		PointsChangeReason pointsChangeReason = null;
		switch(type){
		case"001":
			pointsChangeReason = PointsChangeReason.add;
			break;
		case"002":
			pointsChangeReason = PointsChangeReason.reduce;
			break;
		default:
		break;	
		}
		return pointsChangeReason;
	}
}
